from market_function import *

def main():
    while True:
        print("-------欢迎来到商超管理系统--------")
        print("1.查看所有商品信息\n2.查找商品\n3.添加商品\n4.修改商品价格和折扣\n5.删除商品\n6.查看所有订单\n7.删除订单\n8.订单统计\n9.商品结算")
        choice = input('请输入选择序号:')
        if choice == '1':
            show_products()
        elif choice == '2':
            select_products()
        elif choice == '3':
            add_products()
        elif choice == '4':
            modify_products()
        elif choice == '5':
            del_products()
        elif choice == '6':
            show_orders()
        elif choice == '7':
            del_orders()
        elif choice == '8':
            orders_count()
        elif choice == '9':
            settlement()
        else:
            print("序号输入错误，请重新输入")
if __name__ == '__main__':
    main()